﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.Scripting.Ast;

namespace Scala.Compiler.Ast
{
    public class MatchStatement:Statement
    {
        private readonly CaseDefStatement[] _cases;
        private readonly Statement _selector;

        public MatchStatement(CaseDefStatement[] cases, Statement selector)
        {
            _cases = cases;
            _selector = selector;
        }

        public IList<CaseDefStatement> Cases { get { return _cases; } }

        public Statement Selector { get { return _selector; } }

        public override void Walk(ScalaWalker walker)
        {
            throw new NotImplementedException();
        }

        public override Microsoft.Scripting.Ast.Expression Reduce()
        {
            throw new NotImplementedException();
        }
    }
}
